package com.test;

public class ExDog extends Dog{
    int y = 20;
    public void test(){
        int y1 = this.y;
        System.out.println(this.getName());
        System.out.println(y1);
        System.out.println(this.y);
    }
}
